package com.onlineclass.onlineclassmanagement.feign;

import com.onlineclass.beas.ResultObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "schoolServer")
public interface GetSchoolFeign {

    @RequestMapping("/School/getSchool")
    public ResultObject getSchoolName();

    @RequestMapping("/teacher/getteacher")
    public ResultObject getTeacher();

    @RequestMapping("School/schoolinfo")
    ResultObject getSchoolInfo(@RequestParam("id") int id);
}
